import React, { useState } from 'react'
import './index.css'

function Index() {
    const [show, setShow] = useState(false)
    const isShowInput = () => {
        setShow(!show);
    }
    return (
        <div className='box'>
            <div className='search'>
                <input className={show ? 'inp active' : 'inp'} type="text" placeholder="Search..." />
                <i className='iconfont icon-sousuo icon' onClick={isShowInput}></i>
            </div>
        </div>
    )
}

export default Index